package com.qingmu.club.minaapi.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 会员微信资料
 * </p>
 *
 * @author duke
 * @since 2019-12-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class UsersWx extends Model<UsersWx> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 会员ID
     */
    private String userId;

    /**
     * 微信openid
     */
    private String openId;

    /**
     * 微信uniond
     */
    private String unionId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 0-会员端 1-俱乐部端
     */
    private Integer type;


    public static final String ID = "id";

    public static final String USER_ID = "user_id";

    public static final String OPEN_ID = "open_id";

    public static final String UNION_ID = "union_id";

    public static final String CREATE_TIME = "create_time";

    public static final String TYPE = "type";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
